/*
using System;
using System.Web;
namespace tvgrabau
{	
	public static class YahooParser
	{	
		public static Programme GatherDetails(string s)
		{
		    Programme p = new Programme();
		    string ds = s.Substring(1, s.Length - 2);
		    
		    string[] rdata = ds.Split(',');
		    string[][] data = new string[rdata.Length][];
		    int x = 0;
		    // Now, make it key = data[x][0] and value = data[x][1]
		    foreach (string str in rdata)
		    {
		        char[] split = { ':' };
		        string[] splitd = str.Split(split, 2);
		        data[x] = splitd;
		        
		        // Get rid of quotes either side.
		        data[x][0] = data[x][0].Substring(1, data[x][0].Length - 2);
		        data[x][1] = data[x][1].Substring(1, data[x][1].Length - 2);
		        
		        Console.WriteLine("Data[{0}] = {1}", x, str);
		        Console.WriteLine("Got key {0}", data[x][0]);
		        x++;
		    }
		    
		    Console.WriteLine("X got up to {0} in first loop.", x);
		    
		    x = 0;
		    
		    foreach (string[] d in data)
		    {		    
		        if (d == null || d[0] == null || d[1] == null)
		        {
		            break;
		        }
		        
		        Console.WriteLine("Got: {0}", d[0]);
		    
		        if (d[0] == "start_date")
		        {
		            p.TimeStart = epochToDateTime(long.Parse(d[1]));
		        }
		        else if (d[0] == "end_date")
		        {
		            p.TimeEnd = epochToDateTime(long.Parse(d[1]));
		        }
		        else if (d[0] == "title")
		        {
		            p.Title = d[1];
		        }
		        else if (d[0] == "channel")
		        {
		            p.ChannelName = d[1];
		        }
		        else if (d[0] == "description")
		        {
		            p.Description = d[1];
		        }
		        else if (d[0] == "rating")
		        {
		            p.Classification = d[1];
		        }
		        else if (d[0] == "genre")
		        {
		            p.Category = d[1];
		        }
		        else if (d[0] == "captions")
		        {
		            if (d[1] == "true")
		            {
		                p.Teletext = true;
		            }
		        }
		        else if (d[0] == "repeat")
		        {
		            if (d[1] == "true")
		            {
		                p.Repeat = true;
		            }
		        }
		        
		        if (p.Category != null && p.Category.IndexOf("Sport") > -1)
    			{
    				p.Type = ProgrammeType.Sports;
    				p.Category = p.Category.Replace("Sport/", "");
    				p.Category = p.Category.Replace("Sport", "");
    			}
    			
    			Console.WriteLine("x is now {0}", x);
    			x++;
		    }
		    
		    return p;
		}
		
		private static DateTime epochToDateTime(long epoch)
		{
		    return new System.DateTime(1970, 1, 1, 0, 0, 0, 0).AddSeconds(epoch).ToLocalTime();
		}
	}
}
*/
